package com.ruoyi.safety.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.IdType; //添加
import com.baomidou.mybatisplus.annotation.TableId; //添加
import com.baomidou.mybatisplus.annotation.TableName; //添加
import lombok.Data; //添加

import java.io.Serializable; //添加

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 测点异常信息数据对象 safety_point_abnormal
 *
 * @author ruoyi
 * @date 2024-10-30
 */
@Data //添加
@TableName("safety_point_abnormal") //添加
public class SafetyPointAbnormal extends BaseEntity implements Serializable //修改
{
    private static final long serialVersionUID = 1L;

    /**
     * 测点编码
     */
    //添加
    @TableId(value = "id", type = IdType.AUTO)
    private String pointCode;

    /**
     * 传感器类型名称
     */
    @Excel(name = "传感器类型名称")
    private String sensorTypeName;

    /**
     * 测点安装位置
     */
    @Excel(name = "测点安装位置")
    private String pointInstallLocation;

    /**
     * 测点数值单位
     */
    @Excel(name = "测点数值单位")
    private String pointValueUnit;

    /**
     * 异常类型
     */
    @Excel(name = "异常类型")
    private String abnormalType;

    /**
     * 异常开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "异常开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date abnormalBeginTime;

    /**
     * 异常结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "异常结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date abnormalEndTime;

    /**
     * 异常期间最大值
     */
    @Excel(name = "异常期间最大值")
    private String abnormalMaxValue;

    /**
     * 最大值时刻
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "最大值时刻", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date maxValueTime;

    /**
     * 报警期间最小值
     */
    @Excel(name = "报警期间最小值")
    private String abnormalMinValue;

    /**
     * 最小值时刻
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "最小值时刻", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date minValueTime;

    /**
     * 异常期间平均值
     */
    @Excel(name = "异常期间平均值")
    private String abnormalAverageValue;

    /**
     * 异常原因
     */
    @Excel(name = "异常原因")
    private String abnormalReason;

    /**
     * 处理措施
     */
    @Excel(name = "处理措施")
    private String handMeasure;

    /**
     * 录入时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "录入时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date uploadTime;

    /**
     * 录入人
     */
    @Excel(name = "录入人")
    private String uploadPerson;

    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String extend1;

    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String extend2;

}

